import request from '../request';
let api = {
  cotuntryList: "/api/home/basics/country-list", //国家列表
  freeblock: "/api/home/free-block/info", //自由块
  adverts: "/api/home/adverts/info", //广告位
  subscribe: "/api/home/basics/email-subscribe" //订阅
}
export default {
  //获取国家列表
  cotuntryList(params = {}) {
    return request.get(api.cotuntryList, {
      params
    });
  },
  //获取自由块
  freeblock(params = {}) {
    return request.get(api.freeblock, {
      params
    });
  },
  //获取广告位
  adverts(params = {}) {
    return request.get(api.adverts, {
      params
    });
  },
  //订阅
  subscribe(params = {}) {
    return request.post(api.subscribe,
      params
    );
  },
}
